package scheduler.fixtures;

import fitlibrary.SetUpFixture;
import se392.ateam2006.resourcemgmt.ResourceMgmtRemote;
import se392.ateam2006.resourcemgmt.equipment.EquipmentEntity;


/**
 * TODO: STUB
 * @author Ateam (Matthew Bennett, Claire Melton, Shingai Manyiwa, John Adderley)
 * @version 25/03/07
 */
public class SetUpEquipmentOwnership extends SetUpFixture{

    private ResourceMgmtRemote rmr;
    
    /** Creates a new instance of SetUpEquipmentOwnership */
    public SetUpEquipmentOwnership(ResourceMgmtRemote resources) {
        rmr = resources;
    }
    
    public void serialNumberOwner(String serialNumber, String owner){
        EquipmentEntity equipment = rmr.findEquipmentBySerialID(serialNumber);
        String room = equipment.getRoomId();
        rmr.setEquipmentOwner(serialNumber, owner, room);
    }
    
    
}
